﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KhaoSatSinhVienTotNghiep.Model
{
    public partial class KieuTL
    {
       private static KhaoSatSVTNDataContext context = new KhaoSatSVTNDataContext();
       public static List<KieuTL> GetAllKieuTL()
       {
           return context.KieuTLs.ToList();
       }

       public static KieuTL GetKieuTLByMaKieu(string maKieu)
       {
           return context.KieuTLs.Where(ma=>ma.MaKieuTL==maKieu).FirstOrDefault();
       }

    }
}
